package com.yy.istio.controller;

import com.yy.istio.service.HelloService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/hello")
public class HelloController {

    @Resource
    private HelloService helloService;

    @RequestMapping("/test")
    public String test(){
        String result = helloService.test();
        return "istio-demo1 ----->>>>> " + result;
    }
}
